package com.finance.report.bean.export;

import com.finance.base.constant.BaseConstants;
import com.finance.base.exception.BaseException;
import com.finance.framework.lang.BeanUtils;
import com.finance.report.bean.pojo.ManSalary;
import com.finance.util.export.ExportBeanParse;

/**
 * @Author: gly
 * @Date: Created in 18:46 2017/4/21
 */
public class ManSalaryParse extends ExportBeanParse<ManSalary,ManSalaryParseBean> {
    @Override
    protected ManSalaryParseBean parse(ManSalary manSalary) {
        ManSalaryParseBean bean=new ManSalaryParseBean();
        try{
            BeanUtils.copyProperties(bean,manSalary);
        }catch (Exception e){
            throw  new BaseException(BaseConstants.ERR_COPYBEAN);
        }
        return bean;
    }
}
